package com.isdust.jy.mbank;

import android.annotation.SuppressLint;
import android.app.Application;
import android.telephony.TelephonyManager;

import com.isdust.zor.CoreConfig;
import com.isdust.zor.core.Habitat;

import java.util.List;

/**
 *
 * Created by zor on 2016/10/8.
 */

public class App extends Application {

    private List<Habitat> habitats;

    @SuppressLint("HardwareIds")
    @Override
    public void onCreate() {
        super.onCreate();
        CoreConfig.key = ((TelephonyManager) getSystemService(TELEPHONY_SERVICE)).getDeviceId();
    }

    public List<Habitat> getHabitats() {
        return habitats;
    }

    public void setHabitats(List<Habitat> habitats) {
        this.habitats = habitats;
    }
}
